package org.framework.context;

import org.framework.mq.MqCallbackTaskDecorator;

/**
 * @ClassName MqBlankTaskDecorator
 * @Description
 * @Author RayLiang
 * @Date 2023/1/23 18:53
 * @Version 1.0
 **/
public class MqBlankTaskDecorator implements MqCallbackTaskDecorator {
    @Override
    public Runnable decorate(Runnable runnable) {
        return ()-> {
            try {
                runnable.run();
                Thread.sleep(0);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
        };
    }
}
